﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using CapaGestion;
using CapaGestion.Spring;
using CRUD.DAO;
using CapaNegocios;
using GestionadorBaseDatos;


public partial class InterfazKamalde_AgregarCategoria : Base
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public void InsertarCategoria(object sender, EventArgs e)
    {
        System.Threading.Thread.Sleep(3000);
        IGestionCategoria gestionarCategoria = AdministradorGestion.getGestionarCategoria();

        Categoria nuevaCategoria = new Categoria();
        nuevaCategoria.Nombre = nombreCategoria.Text;
        nuevaCategoria.Descripcion = Descripcion.Text;

        gestionarCategoria.Insert(nuevaCategoria);
    }
}
